import request from '@/utils/request'
export const getDepartment = () => request.get('/company/department')
export const getSimple = () => request.get('/sys/user/simple')
export const addDepartment = data => request.post('/company/department', data)
export const delDepartment = id => request.delete(`/company/department/${id}`)
export const getDepartmentDetails = id => request.get(`/company/department/${id}`)
export const editDepartmentDetails = (id, data) => request.put(`/company/department/${id}`, data)
